package com.haredot.service;

import com.haredot.dto.BindUserRoleDto;
import com.haredot.vo.PageVo;
import com.haredot.vo.R;
import com.haredot.vo.UserVo;

import java.util.List;
import java.util.Map;

public interface UserService {
    R<?> queryOrgAndPositionOrUserData(Long userId);

    R<?> saveUser(UserVo userVo);

    R<?> updateUser(UserVo userVo);

    R<PageVo> queryUsersByPage(PageVo pageVo, Map<String, Object> searchParams);

    R<?> removeUser(Long userId);

    R<BindUserRoleDto> queryRolesRefUser(Long userId);

    R<?> bindRolesRefUser(Long userId, List<Long> roles);
}
